//
//  MorocadeHeadView.m
//  ICrEAM
//
//  Created by mac on 16/11/17.
//  Copyright © 2016年 mac. All rights reserved.
//

#import "MorocadeHeadView.h"
@interface MorocadeHeadView()
@property (weak, nonatomic) IBOutlet UIView *repaiarTypeview;

@end
@implementation MorocadeHeadView
+(instancetype)createMorocadeHeadView{
    return [[[NSBundle mainBundle]loadNibNamed:@"MorocadeHeadView" owner:nil options:nil]lastObject];
}
- (IBAction)repairTypeClick:(id)sender {
    self.repaiarTypeview.backgroundColor=RGB(230, 236, 236);
    if (self.repairTypeBlock) {
        self.repairTypeBlock();
    }
}
-(void)setIsorder:(BOOL)isorder{
    _isorder=isorder;
    if (isorder) {
        self.repaiarTypeview.backgroundColor=RGB(230, 236, 236);
    }
    else self.repaiarTypeview.backgroundColor=[UIColor whiteColor];
}
/*
 // Only override drawRect: if you perform custom drawing.
 // An empty implementation adversely affects performance during animation.
 - (void)drawRect:(CGRect)rect {
 // Drawing code
 }
 */

@end
